package ModelLayer;

/**
 * Class for objects of Supplier
 * 
 * @author (AF, RA, KP, RL) 
 * @version (2012.06.05)
 */
public class Supplier extends Person
{
    private String product;

    /**
     * Constructor for objects of class Supplier
     * 
     * @param name name of Supplier as String  
     * @param address address of Supplier as String
     * @param phoneNo phoneNo of Supplier as String
     * @param email email of Supplier as String
     * @param product product of Supplier as String
     * @param city city of Supplier as String
     * @param postalCode postalCode of Supplier as int
     */
    public Supplier(String name, String address, String phoneNo, 
                    String email, String product, String city, int postalCode)
    {
        super(name, address, phoneNo, email, city, postalCode);
        this.product = product;
    }

    /**
     * sets product of Supplier
     * 
     * @param product product as String 
     * 
     * @return none
     */
    public void setProduct(String product)
    {
        this.product = product;
    }
    
    /**
     * finds product of Supplier
     * 
     * @param none 
     * 
     * @return product as Product
     */
    public String getProduct()
    {
        return this.product;
    }
}
